# $Id: PKGBUILD 83732 2013-02-04 18:45:14Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>

pkgname=vim-rails
pkgver=4.4
_sourceid=16429
pkgrel=2
pkgdesc='Vim plugin for enhanced Ruby on Rails application development'
arch=('any')
url='http://www.vim.org/scripts/script.php?script_id=1567'
license=('custom:vim')
depends=('vim')
install=vimdoc.install
source=("$pkgname.zip::http://www.vim.org/scripts/download_script.php?src_id=$_sourceid"
        'license.txt')
sha256sums=('07e6405fdda1863f4d680c5105cedf2d77b764edfb4223716a748aa6d575ed5d'
            '446c67d93c43addf076fe103a71844c2d875d478f82186436567dd221f2652f3')

package() {
  cd "$srcdir"

  local installpath="$pkgdir/usr/share/vim/vimfiles"
  install -Dm644 autoload/rails.vim "$installpath/autoload/rails.vim"
  install -Dm644 doc/rails.txt "$installpath/doc/rails.txt"
  install -Dm644 plugin/rails.vim "$installpath/plugin/rails.vim"
  install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
